<?php
include_package( 'Xml' );

class XmlDatabaseColumnElement extends XmlElement {

	function XmlDatabaseColumnElement( &$oConfiguration, &$oColumn ) {

		$this->XmlElement( 'column' );
		$this->AddAttribute( 'id'      , $oColumn->GetTableName() . '.' . $oColumn->GetName() );
		$this->AddAttribute( 'name'    , $oColumn->GetName() );
		$this->AddAttribute( 'datatype', $oColumn->GetDataType() );
		$this->AddAttribute( 'isPartOfPrimaryKey', $oColumn->GetIsPartOfPrimaryKey()?'true':'false' );
		$this->AddAttribute( 'isPartOfForeignKey', $oColumn->GetIsPartOfForeignKey()?'true':'false' );
		
	}
}
	
?>
